package com.zhuhjay.service.system.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

/**
 * @author ZhuHJay
 * @date 2023/6/17 10:11
 */
@Data
public class BlackDto {

    @Pattern(regexp = "^(IP|USER)$", message = "类型错误")
    private String type;
    @Length(min = 1, max = 32, message = "目标错误")
    private String target;

}
